<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>浏览日志列表</title>
	<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
  </head>
  
  <body background='skin/images/allbg.gif'>
	  <table width="100%" border="0" class="onelineTable" cellpadding="2"
			cellspacing="1" bgcolor="#D1DDAA" align="center">
			<tr align="center" bgcolor="#E7E7E7" height="22">
				<td width="30%">
					商品
				</td>
				<td width="20%">
					会员
				</td>
				<td width="20%">
					ip
				</td>
				<td width="15%">
					创建日期
				</td>
				<td width="15%">
					修改日期
				</td>
			</tr>
			<c:forEach items="${ pagination.recordList}" var="browseLog">
				<tr align='center' bgcolor="#FFFFFF"
						onMouseMove="javascript:this.bgColor='#FCFDEE';"
						onMouseOut="javascript:this.bgColor='#FFFFFF';" height="50">
					<td>${browseLog.product.name}</td>
			  		<td>${browseLog.member.showname}</td>
			  		<td>${browseLog.ip}</td>
			  		<td><fmt:formatDate value="${browseLog.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			  		<td><fmt:formatDate value="${browseLog.modifyDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			  	</tr>
		  	</c:forEach>
			<tr align="right" bgcolor="#EEF4EA">
				<td height="36" colspan="11" align="center">
					${pagination.pageHtml }
				</td>
			</tr>
	  </table>
  </body>
</html>
